package com.chixing.controller;

import com.chixing.service.StoreCarService;
import com.chixing.util.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StoreCarController {
    @Autowired
    private StoreCarService storeCarService;
    @GetMapping("get/store_and_car")
    @ResponseBody
    public ServerResponse getStoreCarByStoreIdAndCarId(Integer storeId,Integer carId){

        return storeCarService.getStoreCarByStoreIdAndCarId(storeId,carId);
    }
}
